package com.example.administrator.testproject.MVP.Adapter;

import android.support.v7.widget.RecyclerView;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.example.administrator.testproject.MVP.Base.BaseQuickAdapter;
import com.example.administrator.testproject.MVP.Base.BaseViewHolder;
import com.example.administrator.testproject.MVP.Entity.TestDto;
import com.example.administrator.testproject.R;

import java.util.List;

/**
 * Created by Administrator on 2016/10/19 0019.
 */

public class TestAdapter1 extends BaseQuickAdapter<TestDto> {

    public TestAdapter1(int layoutResId, List<TestDto> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, TestDto item) {
//        Glide.with(mContext)
//                .load("http://avatar.csdn.net/1/5/8/1_jishu360.jpg")
//                .crossFade()
//                .placeholder(R.mipmap.ic_launcher)
//                .into((ImageView) helper.getView(R.id.imngView2));
        helper.setText(R.id.textView2, item.getTitle());
    }
}
